namespace KingerRobot.MexicoSailunMDC.Dao;
partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// ——配置 - 编号规格
    /// </summary>
    public DbSet<POSysCodeRole> SysCodeRoles { get; set; }
}

/// <summary>
/// ——配置 - 编号规格
/// 表[sys_code_role]
/// </summary>
[Table("sys_code_role")]
public class POSysCodeRole
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[sys_code_role.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    /// <summary>
    /// 名称
    /// [sys_code_role.code_name)]
    /// </summary>
    [Column("code_name")]
    public string CodeName { get; set; }
    /// <summary>
    /// 类型（唯一）
    /// [sys_code_role.code_type)]
    /// </summary>
    [Column("code_type")]
    public string CodeType { get; set; }
    /// <summary>
    /// 开始值
    /// [sys_code_role.start_value)]
    /// </summary>
    [Column("start_value")]
    public long? StartValue { get; set; }
    /// <summary>
    /// 最大值
    /// [sys_code_role.max_value)]
    /// </summary>
    [Column("max_value")]
    public long? MaxValue { get; set; }
    /// <summary>
    /// 步进方式，如D标识按天
    /// [sys_code_role.step_by)]
    /// </summary>
    [Column("step_by")]
    public string StepBy { get; set; }
    /// <summary>
    /// 格式化
    /// [sys_code_role.code_format)]
    /// </summary>
    [Column("code_format")]
    public string CodeFormat { get; set; }
    /// <summary>
    /// 说明
    /// [sys_code_role.remark)]
    /// </summary>
    [Column("remark")]
    public string Remark { get; set; }
    /// <summary>
    /// 创建时间
    /// [sys_code_role.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// [sys_code_role.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 是否可用 0:不可用  1:在用
    /// [sys_code_role.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
}
